const Mock = require('mockjs')

module.exports = () => {
	return Mock.mock({
		"list|100": [{
			"id|+1": 1,
			"image": "@image(150x120, @color)",
			"title": "@ctitle",
			"word": "@cword(20, 50)",
			"price": "@integer(10, 20)",
			"sell": "@integer(100, 1000000)",
			"type|1": ["数码", "电商", "衣服", "鞋子", "化妆", "生活","用品", "电脑", "手机"],
		}],
		"title": ["数码", "电商", "衣服", "鞋子", "化妆", "生活", "用品", "电脑", "手机"],
		"messageList|1000": [{
			"uid|1-100": 1,
			"id": "@id",
			"nickname": "@cname",
			"avator": "@image(50x50, @color)",
			"datetime": "@datetime",
			"content": "@cword(10, 20)"
		}]
	})
}